package com.example.AIstudy.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

@Data
@TableName("redorecord")
public class RedoRecord implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //巩固的错题ID
    @TableField("cuotiID")
    private Integer cuotiID;

    //巩固的时间
    @TableField("redoTime")
    private Timestamp redoTime;
    //巩固的答案
    @TableField("redoAnswer")
    private String redoAnswer;
    //巩固是否正确
    @TableField("redoRight")
    private Boolean redoRight;

    //巩固的分数
    @TableField("redoScore")
    private Integer redoScore;

    //巩固时的AI评价
    @TableField("redoAIComment")
    private String redoAIComment;

    //巩固时的用户标注
    @TableField("redoUserComment")
    private String redoUserComment;

    //巩固时翻译的评价细节ID
    @TableField("redoTranslationID")
    private Integer redoTranslationID;

    //巩固时翻译的评价细节
    @TableField(exist = false)
    private TranslateDetail translateDetail;

    //巩固时作文的评价细节ID
    @TableField("redoCompositionID")
    private Integer redoCompositionID;

    //巩固时作文的评价细节
    @TableField(exist = false)
    private CompositionDetail compositionDetail;

    @TableField("redoSonProID")
    private String redoSonProID;

    @TableField("falseReason")
    private String falseReason;

    //返回错题的信息
    @TableField(exist = false)
    private List<CuoTiJi> cuoTiList;

    //对应返回巩固时的信息
    @TableField(exist = false)
    private List<RedoRecord> redoRecords;

}
